let generator = function (number, start, isRevert) {
  let idx = start || 0,
    ret = []
  if (number < 0) return

  while (idx++ < number) {
    ret.push(idx)
  }

  if (isRevert) ret = ret.reverse()

  // ret.unshift('')
  return ret
}
export const YEARS = generator(18)
export const MONTHS = generator(12)
export const DAYS = generator(31)
export const FULLYEARS = generator(
  new Date().getFullYear(),
  new Date().getFullYear() - 19,
  1
)
